package cn.exrick.manager.mapper;

import cn.exrick.manager.pojo.TbAdvice;
import cn.exrick.manager.pojo.TbAdviceExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TbAdviceMapper {
    long countByExample(TbAdviceExample example);

    int deleteByExample(TbAdviceExample example);

    int deleteByPrimaryKey(Long id);

    int insert(TbAdvice record);

    int insertSelective(TbAdvice record);

    List<TbAdvice> selectByExample(TbAdviceExample example);

    TbAdvice selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") TbAdvice record, @Param("example") TbAdviceExample example);

    int updateByExample(@Param("record") TbAdvice record, @Param("example") TbAdviceExample example);

    int updateByPrimaryKeySelective(TbAdvice record);

    int updateByPrimaryKey(TbAdvice record);

    List<TbAdvice> getAdviceByMemeberId(Long id);

    List<TbAdvice> selectAdviceByCondition(@Param("username") String username,
                                       @Param("startTime") String startTime, @Param("endTime") String endTime,
                                       @Param("orderCol") String orderCol, @Param("orderDir") String orderDir);
}